package com.logistics.inventory.entity.model;

import com.logistics.pick.entity.model.PickSave;
import com.logistics.utils.bean.SaveBasic;
import lombok.Data;

@Data
public class InventorySave extends SaveBasic {

    private Integer id;

    private String container;

    private Integer containerLevel;

    private Boolean isEmpty;

    private String agv;

    private String station;

    public static InventorySave build(PickSave save) {
        InventorySave inventorySave = new InventorySave();
        inventorySave.setContainer(save.getContainerCode());
        inventorySave.setStation(save.getStation());
        inventorySave.setCreator(save.getCreator());
        inventorySave.setCreateTime(save.getCreateTime());
        inventorySave.setCreateOrgCode(save.getCreateOrgCode());
        inventorySave.setUpdater(save.getUpdater());
        inventorySave.setUpdateTime(save.getUpdateTime());
        inventorySave.setCreateDepCode(save.getCreateDepCode());
        return inventorySave;
    }
}
